/**
 * Track.java
 * Version: 1.0
 * Created in 06/08/2013
 * Created by: Gerson Groth
 * 
 * Copyright
 */
package activities.base.tcx;

import java.util.ArrayList;

/**
 * The Class Track.
 * 
 * @author Gerson Groth
 */
public class Track {

	/** The trackpoints. */
	private ArrayList<Trackpoint> trackpoints = new ArrayList<Trackpoint>();

	/**
	 * Adds the trackpoint.
	 * 
	 * @param trackpoint
	 *            the trackpoint
	 */
	public void addTrackpoint(Trackpoint trackpoint) {
		trackpoints.add(trackpoint);
	}

	/**
	 * Adds the trackpoints.
	 * 
	 * @param trackpoints
	 *            the trackpoints
	 */
	public void addTrackpoints(ArrayList<Trackpoint> trackpoints) {
		trackpoints.addAll(trackpoints);
	}

	/**
	 * Gets the trackpoints.
	 * 
	 * @return the trackpoints
	 */
	public ArrayList<Trackpoint> getTrackpoints() {
		return this.trackpoints;
	}

	/**
	 * Gets the trackpoint.
	 * 
	 * @param index
	 *            the index
	 * @return the trackpoint
	 */
	public Trackpoint getTrackpoint(int index) {
		return this.trackpoints.get(index);
	}
}
